package com.mrjy.maintain.bo;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import com.mrjy.common.entity.MessageInfo;
import com.mrjy.common.entity.QuestionComment;
import com.mrjy.common.entity.UserInfo;

public interface IMessageInfoBo {
	
	/**
	 * 读取信息
	 * @param 
	 * @return
	 */
	public Object readMsg(UserInfo userInfo,MessageInfo messageInfo);
	
	/**
	 * 查询
	 * @param userInfo
	 * @return
	 */
	public Object queryMsgList(UserInfo userInfo,MessageInfo messageInfo);
	
	/**
	 * 更新已读标志
	 * @param userInfo
	 * @param messageInfo
	 * @return
	 */
	public Object updateMsgFlag(UserInfo userInfo, MessageInfo messageInfo);
	
	/**
	 * 已读信息
	 * @param userInfo
	 * @param messageInfo
	 * @return
	 */
	public List<MessageInfo> queryListIsRead(UserInfo userInfo , MessageInfo messageInfo);
	
	/**
	 * 未读信息
	 * @param userInfo
	 * @param messageInfo
	 * @return
	 */
	public List<MessageInfo> queryListNotRead(UserInfo userInfo , MessageInfo messageInfo);
	/**
	 * 未读信息条数
	 * @param userId
	 * @return
	 */
	public Object selectNotReadMsgCountByUserId(Integer userId); 

	public Object queryPageMessageByUserId(MessageInfo info,
			Map<String, Object> map);

	public Object queryMyPageMessageByUserId(MessageInfo info,
			Map<String, Object> map);

	public Object queryMyMessageByUserId(MessageInfo info,
			Map<String, Object> map);

	public Object txUpdateMsgStatusBatch(QuestionComment comment, HttpSession session);
	
}
